{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<form action="" id="form_site"  method="post">
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>场地名称：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="xlarge" name="site_name" id="site_name" value="{$site_info.site_name}">
            <span class="fi-help-text hide"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name">
            <span class="colorRed">*</span>孵化器：</label>
        <div class="form-controls">
            <select name="incubator_id">
                <option value="0">--请选择--</option>
                {foreach from=$incubator_list item=item}
                <option value="{$item.incubator_id}"{if $site_info.incubator_id EQ $item.incubator_id}selected{/if}>{$item.incubator_name}</option>
                {/foreach}
            </select>
            <span class="fi-help-text error"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name">
            <span class="colorRed">*</span>场地类型：</label>
        <div class="form-controls">
            <select name="site_type_id">
                <option value="">--请选择--</option>
                {foreach from=$site_type_list item=type}
                <option value="{$type.type_id}"{if $site_info.site_type_id EQ $type.type_id}selected{/if}>{$type.type_name}</option>
                {/foreach}
            </select>
            <span class="fi-help-text error"></span>
        </div>
    </div>
    {upload_image_widget($pic_arr)}
    <div class="formitems inline">
        <label class="fi-name">
            <span class="colorRed">*</span>价格：</label>
        <div class="form-controls">
            <input type="text" placeholder="0" class="small" name="price" value="{$site_info.price}">
            <span class="fi-text">元/小时</span>
            <span class="fi-help-text error"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>配套设施：</label>
        <div class="form-controls">
            {foreach from = $site_facility_list item =facility}
            <input type="checkbox" class="checkbox" value="{$facility.site_deploy_id}" name="site_facility_ids[]" {if in_array($facility.site_deploy_id,$facility_arr)}checked{/if}>{$facility.site_deploy_name}
            {/foreach}
            <span class="fi-help-text hide"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>支持活动：</label>
        <div class="form-controls">
            {foreach from = $site_activity_list item =activity}
            <input type="checkbox" class="checkbox" value="{$activity.site_deploy_id}" name="site_activity_ids[]"{if in_array($activity.site_deploy_id,$activity_arr)}checked{/if}>{$activity.site_deploy_name}
            {/foreach}
            <span class="fi-help-text hide"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>地址：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="xlarge" name="address" id="address" value="{$site_info.address}">
            <span class="fi-help-text hide"></span>
        </div>
    </div>
    <div class="formitems inline">
        <label class="fi-name">
            <span class="colorRed">*</span>容纳人数：</label>
        <div class="form-controls">
            <input type="text" placeholder="0" class="small" name="people" value="{$site_info.people}">
            <span class="fi-text">人</span>
            <span class="fi-help-text error"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name">
            <span class="colorRed">*</span>联系人：</label>
        <div class="form-controls">
            <input type="text" placeholder="请输入联系人名称" class="small" name="user_name" value="{$site_info.user_name}">
            <span class="fi-help-text error"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name">
            <span class="colorRed">*</span>联系方式：</label>
        <div class="form-controls">
            <input type="text" placeholder="请输入联系方式" class="small" name="mobile" value="{$site_info.mobile}">
            <span class="fi-help-text error"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name">
            <span class="colorRed">*</span>时间：</label>
        <div class="form-controls">
            <input type="text" autocomplete="off" class="Wdate" name="start_time" value="{$site_info.start_hour|date_format:'%H:%M'}"  onclick="WdatePicker({ dateFmt:'HH:00'})">
            <span class="tbs-txt">至</span>
            <input type="text" autocomplete="off" class="Wdate" name="end_time" value="{$site_info.end_hour|date_format:'%H:%M'}"  onclick="WdatePicker({ dateFmt:'HH:00'})">
            <span class="fi-help-text error"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>排序号：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="small" name="serial" id="serial" value="{$site_info.serial}">
            <span class="fi-help-text hide"></span>
        </div>
    </div>

    <!--{upload_image_widget($class_icon_data)}-->
    <div class="formitems inline">
        <label class="fi-name">场地简介：</label>
        <div class="form-controls">
            <textarea name="site_sketch" id="site_sketch">{$site_info.site_sketch}</textarea>
            <span class="fi-help-text"></span>
        </div>
    </div>

    <div class="formitems inline">
        <label class="fi-name"></label>
        <div class="form-controls">
            <input type="hidden" name="act" value="edit" />
            <button type="submit" class="btn btn-blue"><i class="gicon-check white"></i>修改</button>
        </div>
    </div>
</form>
{/block}

{block name="js"}
<script src="/Public/Plugins/My97DatePicker/WdatePicker.js?version={$version}"></script>
<script src="__ACPJS__/AcpSite/site_validate.js?version={$version}"></script>
{/block}